/*
 * @Author: your name
 * @Date: 2020-09-16 17:59:03
 * @LastEditTime: 2020-12-02 15:24:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \inventory-apie:\hjimi\人脸\html\face-recognition\src\api\dataDisplay.js
 */
 
import request from '@/utils/request'

let apis = 'apis/api/user/api/'

// 获取图片列表
/**
 * @description: 
 * @param {clientTimeFrom,clientTimeTo,current,size,sn,type,userId} 
 */
export function imagedata(params) {
  return request({
    url: `${ apis }imagedata`,
    method: 'get',
    params
  })
}

// 获取图片二进制流
export function imageUint(url) {
  return request({
    url: url,
    method: 'get',
  })
}

// 图片代理
 /**
  * @description: 
  * @param {sn} 
  */
 export function imgImport(imgParams) {
  return request({
    url: `apis/file/${imgParams}`,
  })
}

// ----------------------以下暂未用到
// 校验终端是否允许接入
 /**
  * @description: 
  * @param {sn} 
  */
 export function deviceRule(sn) {
  return request({
    url: `apis/internal/gate/${sn}`,
    method: 'get'
  })
}

// 获取用户回调信息
 /**
  * @description: 
  * @param {sn} 
  */
 export function callbackinfo(sn) {
  return request({
    url: `apis/internal/gate/${sn}/callbackinfo`,
    method: 'get'
  })
}

// 上报网关采集的终端图片数据
 /**
  * @description: 
  * @param {sn} 
  * @return {type} 
  */
 export function report() {
  return request({
    url: `apis/internal/gate/report`,
    method: 'post'
  })
}


